﻿@using DirectSell.Model.Manager
@using Webdiyer.WebControls.Mvc;
@model PagedList<Managers>

<table class="table table-border table-bordered table-hover table-bg table-sort">
    <thead>
        <tr class="text-c">
            @*<th width="25"><input type="checkbox" name="" value=""></th>*@
            <th width="80">序号</th>
            <th width="100">管理员编号</th>
            <th width="40">姓名</th>
            <th width="70">状态</th>
            <th width="100">操作</th>
        </tr>
    </thead>
    <tbody>
        @{ int i = 0;}
        @foreach (var item in Model)
        {
            <tr class="text-c">
                <td>@(Model.StartItemIndex + i++)</td>
                <td>@item.ManagerCode</td>
                <td>@item.ManagerName</td>
                @if (item.Role == 1)
                {
                    <td class="td-status"><span class="label label-success radius">已启用</span></td>
                }
                else
                {
                    <td class="td-status"><span class="label label-danger radius">已冻结</span></td>
                }
                <td class="td-manage">
                 
                <a style="text-decoration:none" onClick="Delete('@item.Id')" title="删除"> <i class="Hui-iconfont">&#xe631;</i></a>
                <a title="编辑" href="javascript:;" onclick="member_edit('编辑','/Manager/Admin/Edit?Id=@item.Id','4','','510')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a>
                
            </tr>
        }
    </tbody>
</table>
